const colors = ['#67C23A', '#E6A23C'];
module.exports = {
  color: colors,
  legend: {
    data: ['速度km/min', '高度km']
  },
  grid: {
    left: '15%',
    right: '15%'
  },
  xAxis: [
    {
      type: 'category',
      axisTick: {
        alignWithLabel: true
      },
      // prettier-ignore
      data: ['9:45', '9:50', '9:55', '10:00', '10:05', '10:10', '10:15', '10:20', '10:25', '10:30', '10:35', '10:40']
    }
  ],
  yAxis: [
    {
      type: 'value',
      name: '高度km',
      position: 'right',
      alignTicks: true,
      axisLine: {
        show: true,
        lineStyle: {
          color: colors[1]
        }
      }
    },
    {
      type: 'value',
      name: '速度km/min',
      position: 'left',
      alignTicks: true,
      axisLine: {
        show: true,
        lineStyle: {
          color: colors[0]
        }
      }
    }

  ],
  series: [
    {
      name: '速度km/min',
      type: 'bar',
      data: [
        2000, 2300, 2455, 2688, 3325, 3800, 4800, 5565, 7885, 8000, 7955, 7423
      ]
    },
    {
      name: '高度km',
      type: 'line',
      yAxisIndex: 1,
      data: [
        230, 365, 488, 652, 785, 920, 1200, 1356, 1687, 1965, 2400, 3215
      ]
    }
  ]
};
